//ts-ignore
import {get, post} from "@/utils/request";

// 用户相关接口地址
export const bookApi = {
    // 当前状态
    nowInfo: () => post<any>("/bk/lw-book/nowInfo"),
    // 新增书籍漂入
    bookInApply: (params: any) => post<any>("/bk/lw-book/bookInApply", params),
    // 新增书籍漂出
    bookOutApply: (params: any) => post<any>("/bk/lw-book/bookOutApply", params),
    // 我的漂入申请
    myInApplies: (params: any) => post<any>("/bk/lw-book/myInApplies", params),
    // 我的漂出申请
    myOutApplies: (params: any) => post<any>("/bk/lw-book/myOutApplies", params),
    // isbn查询
    isbnSearch: (params: any) => post<any>("/bk/lw-book/isbnSearch", params),
    // 最新书籍
    newBooks: () => get<any>("/bk/lw-book/newBooks"),
    // 获取可漂出书籍分页列表
    getInLwBookPage: (params: any) => get<any>("/bk/lw-book/getInLwBookPage", params),
};
